
GCC ?= gcc

CFLAGS += -Wall -lm -lstdc++ -fsanitize=address

LIBS +=

INCS += -I../
INCS += -I../../common
INCS += -I../../util

SRCS += ../../common/crosslist.cpp
SRCS += ../../common/image.cpp
SRCS += ../../util/util_bmp.cpp
SRCS += ../../util/util_delay.cpp
# 包含上一层文件夹的所有.cpp文件
SRCS += ${wildcard ../*.cpp}

all: test

test:
	@$(GCC) -o out.$@ $@.cpp \
	$(INCS) $(SRCS) $(CFLAGS) $(LIBS)

clean:
	@rm -rf out*
